package com.mingtu.guards.activity;

import android.widget.TextView;

import com.blankj.utilcode.util.StringUtils;
import com.mingtu.guards.R;
import com.mingtu.guards.base.MyBaseActivity;

import butterknife.BindView;

public class DutyDetailsActivity extends MyBaseActivity {

    @BindView(R.id.tv_content)
    TextView tvContent;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_duty_details;
    }

    @Override
    protected void initView() {
        setModuleTitle("职责");
        setTitleBarBackground(getResources().getDrawable(R.drawable.titlebar_line_bottom));
    }

    @Override
    protected void initData() {
        String content = getIntent().getStringExtra("detail");
        if (!StringUtils.isEmpty(content)) {
            String s = content.replace("\\n", "\n");
            String s1 = s.replace("\\u3000", "\u3000");
            tvContent.setText(s1);
        }
    }

    @Override
    protected void getData() {

    }

}